<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

@extends('index')
@section('title', $title ?? '未命名')

@section('body')
@parent
<link rel="stylesheet" href="/css/admin.css">

{{-- 头部 --}}
{{--
<header>
    @include('home.header')
</header>
--}}

{{-- 主体 --}}
{{--
<main class="container-fluid">
    @include('admin.main')
</main>
--}}
<style>
    form {
        margin: 20px 20px;
    }
</style>
<div class="container mt-5">
    <div class="row">
        <form class="col-4 offset-4" method="POST" action="/updatepwd/check">
            @csrf

            <div class="form-group">
                <label for="exampleInputEmail1">用户</label>
                <input type="text" class="form-control" id="exampleInputEmail1" name="uEmail"
                       value="{{ session('uEmail') }}" disabled>
            </div>
            <div class="form-group">
                <label for="exampleInputPassword1">旧密码</label>
                <input type="password" class="form-control" id="exampleInputPassword1" name="uOldPwd">
                <small id="password" class="form-text text-muted">填写自己帐号的原有密码.</small>
            </div>
            <div class="form-group">
                <label for="exampleInputPassword2">新密码</label>
                <input type="password" class="form-control" id="exampleInputPassword2" name="uNewPwd">
            </div>
            <button type="submit" class="btn btn-primary">确认保存</button>
        </form>
    </div>
</div>

{{-- 尾部 --}}
{{--
<footer>
    @include('admin.footer')
</footer>
--}}


@endsection